const spawn = require('child_process').spawn;

const {
    buildPath,
} = require('./../buildSetting');

spawn(`start cmd /k "
${[
    `cd ${buildPath}`,
    'if exist app.asar del app.asar',
    'asar p . app.asar',
    'exit',
].join(' &\n')}
"`.split('\n').map(_ => _.trim()).join(' '), {
    shell: true,
});
